import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/roleManagement/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: '/roleManagement/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/roleManagement/doDelete',
    method: 'post',
    data,
  })
}
//角色信息获取
export function RoleManagerInfo(params) {
  return request({
    url: `/UserManager/RoleManager/Index=${params.Index}&Count=${params.Count}&MatchString=${params.MatchString}`,
    method: 'get',
    params,
  })
}
//角色信息 新增
export function RNewly(data) {
  return request({
    url: '/UserManager/RoleManager/Newly',
    method: 'post',
    data,
  })
}
//角色信息 修改
export function RRenew(data) {
  return request({
    url: '/UserManager/RoleManager/Renew',
    method: 'post',
    data,
  })
}
//删除角色信息
export function RoleManagerDelete(data) {
  return request({
    url: `/UserManager/RoleManager/RoleName=${data.RoleName}`,
    method: 'delete',
    data,
  })
}
